package cn.sccl.dirms.dev.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

/**
 * Echart图形展示所需数据实体
 * <p/>
 * Created by julei on 2017/3/21.
 */
public class ChartData {
    private String type;//类型
    private String title;//标题
    private String autoRef;//是否自动刷新
    private Long refMs;//刷新间隔
    private List<Object> xdata;//x轴数据
    private List<Object> ydata;//y轴数据
    private Series series;//series信息

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAutoRef() {
        return autoRef;
    }

    public void setAutoRef(String autoRef) {
        this.autoRef = autoRef;
    }

    public Long getRefMs() {
        return refMs;
    }

    public void setRefMs(Long refMs) {
        this.refMs = refMs;
    }

    public Series getSeries() {
        return series;
    }

    public void setSeries(Series series) {
        this.series = series;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public List<Object> getXdata() {
        return xdata;
    }

    public void setXdata(List<Object> xdata) {
        this.xdata = xdata;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public List<Object> getYdata() {
        return ydata;
    }

    public void setYdata(List<Object> ydata) {
        this.ydata = ydata;
    }


}
